//
//  FingerView.h
//  AppFinance
//
//  Created by wei on 12-6-21.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AFKpiQuartzView.h"

@protocol AFFingerViewDelegate <NSObject>
-(void)afFinagerMoveX:(float)x;
@end

@interface AFFingerView : UIView
{
 
    int ggkLineType;
    
    UILabel *line1;
    UILabel *line2;
    UILabel *line3;
//    UIImageView *pointImage;
    UILabel *PointLab;
    
    UIView *_showInfo;
    
    // time
    UILabel *_priceLab;
    UILabel *_averageLab;
    //UILabel *_volumeLab;
    UILabel *_dateLab;
    
    UILabel *_price;
    UILabel *_average;
    UILabel *_volume;
    
    // k line
    UILabel *_highName;
    UILabel *_lowName;
    UILabel *_openName;
    UILabel *_closeName;
    UILabel *_dateName;
    
    UILabel *_high;
    UILabel *_low;
    UILabel *_open;
    UILabel *_close;
    UILabel *_date;
    
    float kpi1;
    float kpi2;
    int kpiType;
    
    NSDictionary *dictInfo;
    
    // 1: time 2:kline
    int fingerType;
    
    NSString *_averageStr;
    
    float point_x;
    float point_y;
    
    NSComparisonResult result;
}

@property(nonatomic,assign) id <AFFingerViewDelegate> delegate;

-(void) fingerViewType:(int)type;

-(void)createInfoView;

-(void)fingerKLineDataRefreshWithX:(float)x withY:(float)y;

//-(void)fingerTimeDataRefresh:(NSDictionary*)dict codeDecimalPlaces:(int)places;
-(void)fingerKLineDataRefresh:(NSDictionary*)dict preData:(NSDictionary *)_predict kLineType:(NSString*)kLineType codeDecimalFormat:(NSString*)format;

-(void) destioy;

-(void)kLineLastRefresh;

-(void)fingerKpiDataRefresh:(AFKpiQuartzView *)kpiquart kpiType:(int)kpi;

@end
